<!DOCTYPE html><html lang="zh-CN" data-theme="light"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"><title>Apache-Poi学习 | 牛牛&amp;blog</title><meta name="author" content="牛牛"><meta name="copyright" content="牛牛"><meta name="format-detection" content="telephone=no"><meta name="theme-color" content="#ffffff"><meta name="description" content="版本&lt;dependency&gt;  &lt;groupId&gt;org.apache.poi&lt;&#x2F;groupId&gt;  &lt;artifactId&gt;poi-ooxml&lt;&#x2F;artifactId&gt;  &lt;version&gt;3.9&lt;&#x2F;version&gt;&lt;&#x2F;dependency&gt;  1、创建工作簿：&#x2F;&#x2F;创建工作簿对象XSSFWorkboo">
<meta property="og:type" content="article">
<meta property="og:title" content="Apache-Poi学习">
<meta property="og:url" content="https://code-ran.gitee.io/2022/12/15/Apache-Poi%E5%AD%A6%E4%B9%A0/index.html">
<meta property="og:site_name" content="牛牛&amp;blog">
<meta property="og:description" content="版本&lt;dependency&gt;  &lt;groupId&gt;org.apache.poi&lt;&#x2F;groupId&gt;  &lt;artifactId&gt;poi-ooxml&lt;&#x2F;artifactId&gt;  &lt;version&gt;3.9&lt;&#x2F;version&gt;&lt;&#x2F;dependency&gt;  1、创建工作簿：&#x2F;&#x2F;创建工作簿对象XSSFWorkboo">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="">
<meta property="article:published_time" content="2022-12-15T06:49:55.000Z">
<meta property="article:modified_time" content="2023-11-02T03:32:07.080Z">
<meta property="article:author" content="牛牛">
<meta property="article:tag" content="poi">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content=""><link rel="shortcut icon" href="/img/myfavicon.png"><link rel="canonical" href="https://code-ran.gitee.io/2022/12/15/Apache-Poi%E5%AD%A6%E4%B9%A0/"><link rel="preconnect" href="//cdn.jsdelivr.net"/><link rel="preconnect" href="//busuanzi.ibruce.info"/><link rel="stylesheet" href="/css/index.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free/css/all.min.css" media="print" onload="this.media='all'"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.min.css" media="print" onload="this.media='all'"><script>const GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: undefined,
  translate: {"defaultEncoding":2,"translateDelay":0,"msgToTraditionalChinese":"繁","msgToSimplifiedChinese":"簡"},
  noticeOutdate: undefined,
  highlight: {"plugin":"highlighjs","highlightCopy":true,"highlightLang":true,"highlightHeightLimit":false},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  relativeDate: {
    homepage: false,
    post: false
  },
  runtime: '天',
  date_suffix: {
    just: '刚刚',
    min: '分钟前',
    hour: '小时前',
    day: '天前',
    month: '个月前'
  },
  copyright: undefined,
  lightbox: 'fancybox',
  Snackbar: undefined,
  source: {
    justifiedGallery: {
      js: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.js',
      css: 'https://cdn.jsdelivr.net/npm/flickr-justified-gallery/dist/fjGallery.min.css'
    }
  },
  isPhotoFigcaption: false,
  islazyload: false,
  isAnchor: false,
  percent: {
    toc: true,
    rightside: false,
  }
}</script><script id="config-diff">var GLOBAL_CONFIG_SITE = {
  title: 'Apache-Poi学习',
  isPost: true,
  isHome: false,
  isHighlightShrink: false,
  isToc: true,
  postUpdate: '2023-11-02 11:32:07'
}</script><noscript><style type="text/css">
  #nav {
    opacity: 1
  }
  .justified-gallery img {
    opacity: 1
  }

  #recent-posts time,
  #post-meta time {
    display: inline !important
  }
</style></noscript><script>(win=>{
    win.saveToLocal = {
      set: function setWithExpiry(key, value, ttl) {
        if (ttl === 0) return
        const now = new Date()
        const expiryDay = ttl * 86400000
        const item = {
          value: value,
          expiry: now.getTime() + expiryDay,
        }
        localStorage.setItem(key, JSON.stringify(item))
      },

      get: function getWithExpiry(key) {
        const itemStr = localStorage.getItem(key)

        if (!itemStr) {
          return undefined
        }
        const item = JSON.parse(itemStr)
        const now = new Date()

        if (now.getTime() > item.expiry) {
          localStorage.removeItem(key)
          return undefined
        }
        return item.value
      }
    }
  
    win.getScript = url => new Promise((resolve, reject) => {
      const script = document.createElement('script')
      script.src = url
      script.async = true
      script.onerror = reject
      script.onload = script.onreadystatechange = function() {
        const loadState = this.readyState
        if (loadState && loadState !== 'loaded' && loadState !== 'complete') return
        script.onload = script.onreadystatechange = null
        resolve()
      }
      document.head.appendChild(script)
    })
  
      win.activateDarkMode = function () {
        document.documentElement.setAttribute('data-theme', 'dark')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#0d0d0d')
        }
      }
      win.activateLightMode = function () {
        document.documentElement.setAttribute('data-theme', 'light')
        if (document.querySelector('meta[name="theme-color"]') !== null) {
          document.querySelector('meta[name="theme-color"]').setAttribute('content', '#ffffff')
        }
      }
      const t = saveToLocal.get('theme')
    
          if (t === 'dark') activateDarkMode()
          else if (t === 'light') activateLightMode()
        
      const asideStatus = saveToLocal.get('aside-status')
      if (asideStatus !== undefined) {
        if (asideStatus === 'hide') {
          document.documentElement.classList.add('hide-aside')
        } else {
          document.documentElement.classList.remove('hide-aside')
        }
      }
    
    const detectApple = () => {
      if(/iPad|iPhone|iPod|Macintosh/.test(navigator.userAgent)){
        document.documentElement.classList.add('apple')
      }
    }
    detectApple()
    })(window)</script><link rel="stylesheet" href="/css/style.css"><meta name="generator" content="Hexo 5.4.0"></head><body><div id="loading-box"><div class="loading-left-bg"></div><div class="loading-right-bg"></div><div class="spinner-box"><div class="configure-border-1"><div class="configure-core"></div></div><div class="configure-border-2"><div class="configure-core"></div></div><div class="loading-word">加载中...</div></div></div><script>const preloader = {
  endLoading: () => {
    document.body.style.overflow = 'auto';
    document.getElementById('loading-box').classList.add("loaded")
  },
  initLoading: () => {
    document.body.style.overflow = '';
    document.getElementById('loading-box').classList.remove("loaded")

  }
}
window.addEventListener('load',()=> { preloader.endLoading() })

if (false) {
  document.addEventListener('pjax:send', () => { preloader.initLoading() })
  document.addEventListener('pjax:complete', () => { preloader.endLoading() })
}</script><div id="sidebar"><div id="menu-mask"></div><div id="sidebar-menus"><div class="avatar-img is-center"><img src="/img/ys.jpg" onerror="onerror=null;src='/img/friend_404.gif'" alt="avatar"/></div><div class="sidebar-site-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">52</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">26</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">26</div></a></div><hr/><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div></div></div><div class="post" id="body-wrap"><header class="post-bg" id="page-header" style="background-image: url('')"><nav id="nav"><span id="blog_name"><a id="site-name" href="/">牛牛&amp;blog</a></span><div id="menus"><div class="menus_items"><div class="menus_item"><a class="site-page" href="/"><i class="fa-fw fas fa-home"></i><span> 首页</span></a></div><div class="menus_item"><a class="site-page" href="/archives/"><i class="fa-fw fas fa-archive"></i><span> 归档</span></a></div><div class="menus_item"><a class="site-page" href="/tags/"><i class="fa-fw fas fa-tags"></i><span> 标签</span></a></div><div class="menus_item"><a class="site-page" href="/categories/"><i class="fa-fw fas fa-folder-open"></i><span> 分类</span></a></div></div><div id="toggle-menu"><a class="site-page"><i class="fas fa-bars fa-fw"></i></a></div></div></nav><div id="post-info"><h1 class="post-title">Apache-Poi学习</h1><div id="post-meta"><div class="meta-firstline"><span class="post-meta-date"><i class="far fa-calendar-alt fa-fw post-meta-icon"></i><span class="post-meta-label">发表于</span><time class="post-meta-date-created" datetime="2022-12-15T06:49:55.000Z" title="发表于 2022-12-15 14:49:55">2022-12-15</time><span class="post-meta-separator">|</span><i class="fas fa-history fa-fw post-meta-icon"></i><span class="post-meta-label">更新于</span><time class="post-meta-date-updated" datetime="2023-11-02T03:32:07.080Z" title="更新于 2023-11-02 11:32:07">2023-11-02</time></span><span class="post-meta-categories"><span class="post-meta-separator">|</span><i class="fas fa-inbox fa-fw post-meta-icon"></i><a class="post-meta-categories" href="/categories/poi%E7%9B%B8%E5%85%B3/">poi相关</a></span></div><div class="meta-secondline"><span class="post-meta-separator">|</span><span class="post-meta-pv-cv" id="" data-flag-title="Apache-Poi学习"><i class="far fa-eye fa-fw post-meta-icon"></i><span class="post-meta-label">阅读量:</span><span id="busuanzi_value_page_pv"><i class="fa-solid fa-spinner fa-spin"></i></span></span></div></div></div></header><main class="layout" id="content-inner"><div id="post"><article class="post-content" id="article-container"><h5 id="版本"><a href="#版本" class="headerlink" title="版本"></a>版本</h5><figure class="highlight xml"><table><tr><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">dependency</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">groupId</span>&gt;</span>org.apache.poi<span class="tag">&lt;/<span class="name">groupId</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">artifactId</span>&gt;</span>poi-ooxml<span class="tag">&lt;/<span class="name">artifactId</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">version</span>&gt;</span>3.9<span class="tag">&lt;/<span class="name">version</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">dependency</span>&gt;</span></span><br></pre></td></tr></table></figure>

<h5 id="1、创建工作簿："><a href="#1、创建工作簿：" class="headerlink" title="1、创建工作簿："></a>1、创建工作簿：</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//创建工作簿对象</span></span><br><span class="line">XSSFWorkbook xssfWorkbook = <span class="keyword">new</span> XSSFWorkbook();</span><br><span class="line"><span class="comment">//创建输出流对象，并初始化</span></span><br><span class="line">FileOutputStream outputStream = <span class="keyword">new</span> FileOutputStream(<span class="keyword">new</span> File(<span class="string">&quot;测试.xlsx&quot;</span>));</span><br><span class="line"><span class="comment">//使用文件输出对象写入操作工作簿</span></span><br><span class="line">xssfWorkbook.write(outputStream);</span><br><span class="line"><span class="comment">//关闭输出流</span></span><br><span class="line">outputStream.close();</span><br><span class="line">System.out.println(<span class="string">&quot;创建工作簿成功!&quot;</span>);</span><br></pre></td></tr></table></figure>

<p><img src="/2022/12/15/Apache-Poi%E5%AD%A6%E4%B9%A0/image-20221219153047997.png" alt="image-20221219153047997"></p>
<h5 id="2、打开工作簿"><a href="#2、打开工作簿" class="headerlink" title="2、打开工作簿"></a>2、打开工作簿</h5><figure class="highlight java"><table><tr><td class="code"><pre><span class="line">File file = <span class="keyword">new</span> File(<span class="string">&quot;测试.xlsx&quot;</span>);</span><br><span class="line">FileInputStream fileInputStream = <span class="keyword">new</span> FileInputStream(file);</span><br><span class="line"><span class="comment">//获取XLSX文件的工作簿实例</span></span><br><span class="line">XSSFWorkbook xssfWorkbook = <span class="keyword">new</span> XSSFWorkbook(fileInputStream);</span><br><span class="line"><span class="comment">//打开工作簿后，就可以对其执行读写操作。</span></span><br><span class="line"><span class="keyword">if</span> (file.isFile() &amp;&amp; file.exists()) &#123;</span><br><span class="line">    System.out.println(<span class="string">&quot;打开文件成功!&quot;</span>);</span><br><span class="line">&#125; <span class="keyword">else</span> &#123;</span><br><span class="line">    System.out.println(<span class="string">&quot;打开文件失败!&quot;</span>);</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h5 id="3、创建电子表格"><a href="#3、创建电子表格" class="headerlink" title="3、创建电子表格"></a>3、创建电子表格</h5><p>（1）写入数据</p>
<p>创建sheet页电子表格，并往表格中写入数据</p>
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line"><span class="comment">//创建工作簿对象</span></span><br><span class="line">XSSFWorkbook xssfWorkbook = <span class="keyword">new</span> XSSFWorkbook();</span><br><span class="line"></span><br><span class="line"><span class="comment">//创建工作表对象</span></span><br><span class="line">XSSFSheet xssfSheet = xssfWorkbook.createSheet(<span class="string">&quot;员工信息&quot;</span>);</span><br><span class="line"><span class="comment">//创建行对象</span></span><br><span class="line">XSSFRow row;</span><br><span class="line"><span class="comment">//构造数据</span></span><br><span class="line">Map&lt;String, Object[]&gt; employerInfoData = <span class="keyword">new</span> TreeMap&lt;String, Object[]&gt;();</span><br><span class="line">employerInfoData.put(<span class="string">&quot;1&quot;</span>, <span class="keyword">new</span> Object[]&#123;<span class="string">&quot;编号&quot;</span>, <span class="string">&quot;名字&quot;</span>, <span class="string">&quot;描述&quot;</span>&#125;);</span><br><span class="line">employerInfoData.put(<span class="string">&quot;2&quot;</span>, <span class="keyword">new</span> Object[]&#123;<span class="string">&quot;1001&quot;</span>, <span class="string">&quot;张三&quot;</span>, <span class="string">&quot;开发&quot;</span>&#125;);</span><br><span class="line">employerInfoData.put(<span class="string">&quot;3&quot;</span>, <span class="keyword">new</span> Object[]&#123;<span class="string">&quot;1002&quot;</span>, <span class="string">&quot;李四&quot;</span>, <span class="string">&quot;开发&quot;</span>&#125;);</span><br><span class="line">employerInfoData.put(<span class="string">&quot;4&quot;</span>, <span class="keyword">new</span> Object[]&#123;<span class="string">&quot;1003&quot;</span>, <span class="string">&quot;王五&quot;</span>, <span class="string">&quot;运维&quot;</span>&#125;);</span><br><span class="line">employerInfoData.put(<span class="string">&quot;5&quot;</span>, <span class="keyword">new</span> Object[]&#123;<span class="string">&quot;1004&quot;</span>, <span class="string">&quot;小美&quot;</span>, <span class="string">&quot;测试&quot;</span>&#125;);</span><br><span class="line">employerInfoData.put(<span class="string">&quot;6&quot;</span>, <span class="keyword">new</span> Object[]&#123;<span class="string">&quot;1005&quot;</span>, <span class="string">&quot;李华&quot;</span>, <span class="string">&quot;产品&quot;</span>&#125;);</span><br><span class="line"></span><br><span class="line"><span class="comment">//遍历数据，并写入工作表</span></span><br><span class="line">Set&lt;String&gt; keyId = employerInfoData.keySet();</span><br><span class="line"><span class="keyword">int</span> rowId = <span class="number">0</span>;</span><br><span class="line"><span class="keyword">for</span> (String key : keyId) &#123;</span><br><span class="line">    <span class="comment">//根据工作表创建行对象</span></span><br><span class="line">    row = xssfSheet.createRow(rowId++);</span><br><span class="line">    Object[] objectArray = employerInfoData.get(key);</span><br><span class="line">    <span class="keyword">int</span> cellid = <span class="number">0</span>;</span><br><span class="line">    <span class="keyword">for</span> (Object obj : objectArray) &#123;</span><br><span class="line">        <span class="comment">//根据行，创建单元格</span></span><br><span class="line">        Cell cell = row.createCell(cellid++);</span><br><span class="line">        <span class="comment">//给单元格赋值</span></span><br><span class="line">        cell.setCellValue((String) obj);</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br><span class="line">FileOutputStream outputStream = <span class="keyword">new</span> FileOutputStream(<span class="keyword">new</span> File(<span class="string">&quot;员工信息表格.xlsx&quot;</span>));</span><br><span class="line">xssfWorkbook.write(outputStream);</span><br><span class="line">outputStream.close();</span><br><span class="line">System.out.println(<span class="string">&quot;数据写入excel成功!&quot;</span>);</span><br></pre></td></tr></table></figure>

<p><img src="/2022/12/15/Apache-Poi%E5%AD%A6%E4%B9%A0/image-20221219154203319.png" alt="image-20221219154203319"></p>
<p>(2)读取数据</p>
<figure class="highlight java"><table><tr><td class="code"><pre><span class="line">XSSFRow row;</span><br><span class="line">FileInputStream fileInputStream = <span class="keyword">new</span> FileInputStream(<span class="keyword">new</span> File(<span class="string">&quot;员工信息表格.xlsx&quot;</span>));</span><br><span class="line">XSSFWorkbook xssfWorkbook = <span class="keyword">new</span> XSSFWorkbook(fileInputStream);</span><br><span class="line">XSSFSheet xssfSheet = xssfWorkbook.getSheetAt(<span class="number">0</span>);</span><br><span class="line">Iterator&lt;Row&gt; rowIterator = xssfSheet.iterator();</span><br><span class="line"><span class="keyword">while</span> (rowIterator.hasNext()) &#123;</span><br><span class="line">    row = (XSSFRow) rowIterator.next();</span><br><span class="line">    Iterator&lt;Cell&gt; cellIterator = row.cellIterator();</span><br><span class="line">    <span class="keyword">while</span> (cellIterator.hasNext()) &#123;</span><br><span class="line">        Cell cell = cellIterator.next();</span><br><span class="line">        <span class="keyword">switch</span> (cell.getCellType()) &#123;</span><br><span class="line">            <span class="keyword">case</span> Cell.CELL_TYPE_NUMERIC:</span><br><span class="line">                System.out.print(cell.getNumericCellValue() + <span class="string">&quot; \t\t &quot;</span>);</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">case</span> Cell.CELL_TYPE_STRING:</span><br><span class="line">                System.out.print(cell.getStringCellValue() + <span class="string">&quot; \t\t &quot;</span>);</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">            <span class="keyword">default</span>:</span><br><span class="line">                <span class="keyword">break</span>;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">    System.out.println();</span><br><span class="line">&#125;</span><br><span class="line">fileInputStream.close();</span><br></pre></td></tr></table></figure>

<p><img src="/2022/12/15/Apache-Poi%E5%AD%A6%E4%B9%A0/image-20221219154235262.png" alt="image-20221219154235262"></p>
</article><div class="post-copyright"><div class="post-copyright__author"><span class="post-copyright-meta">文章作者: </span><span class="post-copyright-info"><a href="https://code-ran.gitee.io">牛牛</a></span></div><div class="post-copyright__type"><span class="post-copyright-meta">文章链接: </span><span class="post-copyright-info"><a href="https://code-ran.gitee.io/2022/12/15/Apache-Poi%E5%AD%A6%E4%B9%A0/">https://code-ran.gitee.io/2022/12/15/Apache-Poi%E5%AD%A6%E4%B9%A0/</a></span></div><div class="post-copyright__notice"><span class="post-copyright-meta">版权声明: </span><span class="post-copyright-info">本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank">CC BY-NC-SA 4.0</a> 许可协议。转载请注明来自 <a href="https://code-ran.gitee.io" target="_blank">牛牛&blog</a>！</span></div></div><div class="tag_share"><div class="post-meta__tag-list"><a class="post-meta__tags" href="/tags/poi/">poi</a></div><div class="post_share"><div class="social-share" data-image="" data-sites="facebook,twitter,wechat,weibo,qq"></div><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/css/share.min.css" media="print" onload="this.media='all'"><script src="https://cdn.jsdelivr.net/npm/butterfly-extsrc/sharejs/dist/js/social-share.min.js" defer></script></div></div><nav class="pagination-post" id="pagination"><div class="prev-post pull-left"><a href="/2022/12/20/java%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B%E7%9A%84%E8%BD%AC%E6%8D%A2/"><img class="prev-cover" src="" onerror="onerror=null;src='/img/404.jpg'" alt="cover of previous post"><div class="pagination-info"><div class="label">上一篇</div><div class="prev_info">java数据类型的转换</div></div></a></div><div class="next-post pull-right"><a href="/2022/12/15/redis%E6%8A%A5%E9%94%99RedisCommandExecutionException/"><img class="next-cover" src="" onerror="onerror=null;src='/img/404.jpg'" alt="cover of next post"><div class="pagination-info"><div class="label">下一篇</div><div class="next_info">redis报错RedisCommandExecutionException</div></div></a></div></nav></div><div class="aside-content" id="aside-content"><div class="card-widget card-info"><div class="is-center"><div class="avatar-img"><img src="/img/ys.jpg" onerror="this.onerror=null;this.src='/img/friend_404.gif'" alt="avatar"/></div><div class="author-info__name">牛牛</div><div class="author-info__description"></div></div><div class="card-info-data site-data is-center"><a href="/archives/"><div class="headline">文章</div><div class="length-num">52</div></a><a href="/tags/"><div class="headline">标签</div><div class="length-num">26</div></a><a href="/categories/"><div class="headline">分类</div><div class="length-num">26</div></a></div><a id="card-info-btn" target="_blank" rel="noopener" href="https://github.com/code-ran"><i class="fab fa-github"></i><span>Follow Me</span></a></div><div class="card-widget card-announcement"><div class="item-headline"><i class="fas fa-bullhorn fa-shake"></i><span>公告</span></div><div class="announcement_content">本blog内容仅用于个人学习使用!</div></div><div class="sticky_layout"><div class="card-widget" id="card-toc"><div class="item-headline"><i class="fas fa-stream"></i><span>目录</span><span class="toc-percentage"></span></div><div class="toc-content"><ol class="toc"><li class="toc-item toc-level-5"><a class="toc-link" href="#%E7%89%88%E6%9C%AC"><span class="toc-number">1.</span> <span class="toc-text">版本</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#1%E3%80%81%E5%88%9B%E5%BB%BA%E5%B7%A5%E4%BD%9C%E7%B0%BF%EF%BC%9A"><span class="toc-number">2.</span> <span class="toc-text">1、创建工作簿：</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#2%E3%80%81%E6%89%93%E5%BC%80%E5%B7%A5%E4%BD%9C%E7%B0%BF"><span class="toc-number">3.</span> <span class="toc-text">2、打开工作簿</span></a></li><li class="toc-item toc-level-5"><a class="toc-link" href="#3%E3%80%81%E5%88%9B%E5%BB%BA%E7%94%B5%E5%AD%90%E8%A1%A8%E6%A0%BC"><span class="toc-number">4.</span> <span class="toc-text">3、创建电子表格</span></a></li></ol></div></div><div class="card-widget card-recent-post"><div class="item-headline"><i class="fas fa-history"></i><span>最新文章</span></div><div class="aside-list"><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/04/30/springboot%E6%B3%A8%E8%A7%A3%E7%9B%B8%E5%85%B3/" title="springboot注解相关">springboot注解相关</a><time datetime="2024-04-30T03:20:37.000Z" title="发表于 2024-04-30 11:20:37">2024-04-30</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2024/04/30/CommandLineRunner%E5%92%8CApplicationRunner%E7%94%A8%E6%B3%95%E4%B8%8E%E5%8C%BA%E5%88%AB/" title="CommandLineRunner和ApplicationRunner用法与区别">CommandLineRunner和ApplicationRunner用法与区别</a><time datetime="2024-04-30T02:42:21.000Z" title="发表于 2024-04-30 10:42:21">2024-04-30</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/12/08/%E5%A5%BD%E6%96%87%E6%94%B6%E8%97%8F/" title="好文收藏">好文收藏</a><time datetime="2023-12-08T08:40:13.000Z" title="发表于 2023-12-08 16:40:13">2023-12-08</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/12/08/springboot%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E4%B8%8B%E8%BD%BD/" title="springboot文件上传下载">springboot文件上传下载</a><time datetime="2023-12-08T03:30:54.000Z" title="发表于 2023-12-08 11:30:54">2023-12-08</time></div></div><div class="aside-list-item no-cover"><div class="content"><a class="title" href="/2023/12/05/linux%E4%BD%BF%E7%94%A8curl%E5%91%BD%E4%BB%A4%E5%8F%91%E9%80%81%E8%AF%B7%E6%B1%82/" title="linux使用curl命令发送请求">linux使用curl命令发送请求</a><time datetime="2023-12-05T05:56:19.000Z" title="发表于 2023-12-05 13:56:19">2023-12-05</time></div></div></div></div></div></div></main><footer id="footer"><div id="footer-wrap"><div class="copyright">&copy;2021 - 2024 By 牛牛</div><div class="footer_custom_text">Hi, Welcome to my blog!</div></div></footer></div><div id="rightside"><div id="rightside-config-hide"><button id="readmode" type="button" title="阅读模式"><i class="fas fa-book-open"></i></button><button id="translateLink" type="button" title="简繁转换">簡</button><button id="darkmode" type="button" title="浅色和深色模式转换"><i class="fas fa-adjust"></i></button><button id="hide-aside-btn" type="button" title="单栏和双栏切换"><i class="fas fa-arrows-alt-h"></i></button></div><div id="rightside-config-show"><button id="rightside_config" type="button" title="设置"><i class="fas fa-cog fa-spin"></i></button><button class="close" id="mobile-toc-button" type="button" title="目录"><i class="fas fa-list-ul"></i></button><button id="go-up" type="button" title="回到顶部"><span class="scroll-percent"></span><i class="fas fa-arrow-up"></i></button></div></div><div><script src="/js/utils.js"></script><script src="/js/main.js"></script><script src="/js/tw_cn.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/ui/dist/fancybox.umd.min.js"></script><div class="js-pjax"></div><script async data-pjax src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script></div></body></html>